execute @r[score_开箱_min=1] ~ ~ ~ function chestNEW:openchest



execute @a[tag=die,score_HP_min=1] ~ ~ ~ function main:hp/newlife
execute @a[score_HP=0,tag=!die] ~ ~ ~ function main:hp/die

scoreboard players tag @e[tag=MonsterID] add 更改血量 {Motion:[0.0d,-0.059699998951703304d,0.0d]}
execute @e[tag=更改血量] ~ ~0.3 ~ function Monster:die改血

#execute @r[score_钓鱼_min=1] ~ ~ ~ function fish:钓到鱼
#execute @r[score_fish.收竿_min=1] ~ ~ ~ function fish:收杆



execute @r[score_dropItem_min=1] ~ ~ ~ function main:DropItem

#-##########################待修改##########################
execute @r[score_绑定计时=-1] ~ ~ ~ function bind:lookfor/tp
#-##########################################################

##boss伤害计算

execute @a[tag=BossAiLun,score_造成伤害_min=1] ~ ~ ~ function boss:安伦/血量main
##怪物初始化
execute @e[tag=未初始化] ~ ~ ~ function Monster:初始化/main if @s[tag=Monster]
execute @a[tag=战场,score_造成伤害_min=1] ~ ~ ~ function Monster:main


execute @r ~ ~ ~ function gun:持枪判断
execute @a[score_下蹲_min=1] ~ ~ ~ function main:下蹲
execute @a[score_guns_min=1] ~ ~ ~ function gun:main
execute @e[tag=ball] ~ ~ ~ function gun:发射/弹道/正常/main
execute @e[tag=ball] ~ ~ ~ function gun:发射/判定/main
execute @a[tag=gun.射击冷却] ~ ~ ~ function gun:射击冷却

function main:4tick if @e[name=随机,score_计时刻_min=4,score_计时刻=4]
function main:0.5s系统 if @e[name=随机,score_计时刻_min=10,score_计时刻=10]
execute @e[tag=killtime] ~ ~ ~ function main:killtime


execute @e[score_计时刻_min=20] ~ ~ ~ function time:add1s
scoreboard players add @e[name=随机,type=area_effect_cloud] 计时刻 1

##检测玩家掉入虚空
execute @a[tag=大厅] ~ ~ ~ function main:状态/掉入虚空 if @s[y=-1,r=5]

##奖励箱测试
effect @e[tag=奖励箱] 24 1 0 true

